local maxFood = 1200

function onUse(cid, item, frompos, item2, topos) 
	local nutrition = foods[item.itemid][1]
	local text = foods[item.itemid][2]
	
    if (getPlayerFood(cid) + nutrition > maxFood) then 
        doPlayerSendCancel(cid, "You are full.") 
    else 
        doPlayerFeed(cid, nutrition) 
		doRemoveItem(item.uid, 1) 
        doPlayerSay(cid, text, TALKTYPE_ORANGE_1)    
    end 
    return TRUE
end  